package ve.usb.ddp.hibernate;

import ve.usb.cohesion.runtime.LocalDate;

import ve.usb.cohesion.runtime.LocalDate;



public class PaiProrroga implements java.io.Serializable, ve.usb.cohesion.runtime.Auditable {

    /** Creates a new instance of PaiProrroga */
    public PaiProrroga() {}
    
    /**
     * Holds value of property id.
     */
    private Long id;

    /**
     * Getter for property id.
     * @return Value of property id.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * Holds value of property idProrroga.
     */
    private long idProrroga;

    /**
     * Getter for property idProrroga.
     * @return Value of property idProrroga.
     */
    public long getIdProrroga() {
        return this.idProrroga;
    }

    /**
     * Setter for property idProrroga.
     * @param idProrroga New value of property idProrroga.
     */
    public void setIdProrroga(long idProrroga) {
        this.id = this.idProrroga = idProrroga;
    }
    /**
     * Holds value of property resolucion.
     */
    private PaiResolucion resolucion;

    /**
     * Getter for property resolucion.
     * @return Value of property resolucion.
     */
    public PaiResolucion getResolucion() {
        return this.resolucion;
    }

    /**
     * Setter for property resolucion.
     * @param resolucion New value of property resolucion.
     */
    public void setResolucion(PaiResolucion resolucion) {
        this.resolucion = resolucion;
    }
    /**
     * Holds value of property otorgado.
     */
    private boolean otorgado;

    /**
     * Getter for property otorgado.
     * @return Value of property otorgado.
     */
    public boolean getOtorgado() {
        return this.otorgado;
    }

    /**
     * Setter for property otorgado.
     * @param otorgado New value of property otorgado.
     */
    public void setOtorgado(boolean otorgado) {
        this.otorgado = otorgado;
    }
    /**
     * Holds value of property fec_Ini.
     */
    private java.util.Date fec_Ini;

    /**
     * Getter for property fec_Ini.
     * @return Value of property fec_Ini.
     */
    public java.util.Date getFec_Ini() {
        return this.fec_Ini;
    }

    /**
     * Setter for property fec_Ini.
     * @param fec_Ini New value of property fec_Ini.
     */
    public void setFec_Ini(java.util.Date fec_Ini) {
        if (fec_Ini==null || fec_Ini instanceof LocalDate) 
            this.fec_Ini = fec_Ini;
        else this.fec_Ini = new LocalDate(fec_Ini);
    }
    /**
     * Holds value of property fec_Fin.
     */
    private java.util.Date fec_Fin;

    /**
     * Getter for property fec_Fin.
     * @return Value of property fec_Fin.
     */
    public java.util.Date getFec_Fin() {
        return this.fec_Fin;
    }

    /**
     * Setter for property fec_Fin.
     * @param fec_Fin New value of property fec_Fin.
     */
    public void setFec_Fin(java.util.Date fec_Fin) {
        if (fec_Fin==null || fec_Fin instanceof LocalDate) 
            this.fec_Fin = fec_Fin;
        else this.fec_Fin = new LocalDate(fec_Fin);
    }



    public String toString() {
        return "<PaiProrroga id='C" + this.id +
        //idProrroga
        ((resolucion==null) ? "" : "\" resolucion =\"C" + resolucion.getId()) +
        "\" otorgado =\"" + otorgado +
        "\" fec_Ini =\"" + fec_Ini +
        "\" fec_Fin =\"" + fec_Fin +
        "'/>";
    }

}